﻿FROM nginx:stable-alpine
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

# 将 dist 目录下的内容复制到 nginx 的服务目录下
COPY dist /usr/share/nginx/html
COPY default.conf /etc/nginx/conf.d/

# 暴露端口
EXPOSE 80

# 定义容器启动时执行的命令
CMD ["nginx", "-g", "daemon off;"]
